package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import com.sky.result.Result;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface ShoppingCartService {
    /**
     * 添加购物车
     * @param shoppingCartDTO
     * @return
     */
    public void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查询购物车,并显示
     * @return
     */
    public List<ShoppingCart> showShoppingCar();

    /**
     * 清理购物车
     * @return
     */
    public Result clean();

    /**
     * 点击减号
     * @return
     */
    public Result sub(ShoppingCartDTO shoppingCartDTO);
}
